var path = require('path');
module.exports = {
	entry: [
		// 'webpack/hot/only-dev-server',
		// 'webpack-dev-server/client?http://localhost:8080'
		'./assets/js/entry.js'
	],
	output: {
		path: path.join(__dirname,'build/js'),
		publicPath: "/build/js",
		filename: 'bundle.js'
	},
	module: {
		loaders: [
		{
			test: /\.js?$/,
			loader: 'babel',
			query: {
				presets: ['react','es2015']
			},
		},
		{
			test: /\.styl$/,
			loader: 'style-loader!css-loader!stylus-loader'
		}, {
			test: /\.(css)$/,
			loader: 'style-loader!css-loader'
		}, {
			test: /\.(png|jpg)$/,
			loader: 'url-loader?limit=8192'
		}]
	},
	resolve: {
	  extensions: ['', '.js', '.jsx']
	}
};